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AgIGRhdGEuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGxldCBpZCA9ICdodHRwczovL21vYmlsZS54aW1hbGF5YS5jb20vbW9iaWxlL3YxL2FsYnVtL3RyYWNrL3RzLTE3MjA1ODkxMDU4MDc/YWxidW1JZD0nICsgaXQuaWQgKyAnJnBhZ2VJZD0xJnBhZ2VTaXplPTMwMDAmZGV2aWNlPWFuZHJvaWQmaXNBc2M9dHJ1ZSc7CiAgICAgICAgICAgIGQucHVzaCh7CiAgICAgICAgICAgICAgICB1cmw6IGlkLAogICAgICAgICAgICAgICAgdGl0bGU6IGl0LmFsYnVtSW5mby50aXRsZSwKICAgICAgICAgICAgICAgIGltZzogJ2h0dHA6Ly9pbWFnZXYyLnhtY2RuLmNvbS8nICsgaXQuYWxidW1JbmZvLmNvdmVyLAogICAgICAgICAgICB9KQogICAgICAgIH0pOwogICAgICAgIHNldFJlc3VsdChkKTsKICAgIH0pLAogICAg5LqM57qnOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGxldCB1cmxzID0gW107CiAgICAgICAgbGV0IGh0bWwgPSByZXF1ZXN0KGlucHV0KTsKICAgICAgICBsZXQganNvbiA9IEpTT04ucGFyc2UoaHRtbCk7CiAgICAgICAgLy8gbG9nKGh0bWwpOwogICAgICAgIGxldCBkYXRhID0ganNvbi5kYXRhLmxpc3Q7CiAgICAgICAgZGF0YS5mb3JFYWNoKGl0ID0+IHsKICAgICAgICAgICAgdXJscy5wdXNoKGl0LnRpdGxlICsgJyQnICsgaXQucGxheVBhdGhBYWN2MTY0KTsKICAgICAgICB9KTsKICAgICAgICBsZXQgbWF4UGFnZUlkID0ganNvbi5kYXRhLm1heFBhZ2VJZDsKICAgICAgICBpZiAodHlwZW9mIChiYXRjaEZldGNoKSA9PT0gJ2Z1bmN0aW9uJyAmJiBtYXhQYWdlSWQgPiAxKSB7CiAgICAgICAgICAgIGxldCByZXFVcmxzID0gW107CiAgICAgICAgICAgIGZvciAobGV0IGogPSAyOyBqIDw9IG1heFBhZ2VJZDsgaisrKSB7CiAgICAgICAgICAgICAgICByZXFVcmxzLnB1c2goe3VybDogaW5wdXQucmVwbGFjZSgncGFnZUlkPTEnLCAncGFnZUlkPScgKyBqKSwgb3B0aW9uOiB7dGltZW91dDogNTAwMH19KTsKICAgICAgICAgICAgfQogICAgICAgICAgICBsZXQgcmh0bWxzID0gYmF0Y2hGZXRjaChyZXFVcmxzKTsKICAgICAgICAgICAgcmh0bWxzLmZvckVhY2goKHJodG1sKSA9PiB7CiAgICAgICAgICAgICAgICBsZXQgcmpzb24gPSBKU09OLnBhcnNlKHJodG1sKTsKICAgICAgICAgICAgICAgIGxldCByZGF0YSA9IHJqc29uLmRhdGEubGlzdDsKICAgICAgICAgICAgICAgIHJkYXRhLmZvckVhY2goaXQgPT4gewogICAgICAgICAgICAgICAgICAgIHVybHMucHVzaChpdC50aXRsZSArICckJyArIGl0LnBsYXlQYXRoQWFjdjE2NCk7CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSk7CiAgICAgICAgfQoKICAgICAgICBWT0QgPSB7CiAgICAgICAgICAgIHZvZF9wbGF5X2Zyb206ICfnkIPnkIPllaYnLAogICAgICAgICAgICB2b2RfcGxheV91cmw6IHVybHMuam9pbignIycpCiAgICAgICAgfTsKICAgIH0pLAogICAg5pCc57SiOiAkanMudG9TdHJpbmcoKCkgPT4gewogICAgICAgIGxldCBkID0gW107CiAgICAgICAgbGV0IGh0bWwgPSByZXF1ZXN0KGlucHV0KTsKICAgICAgICBsZXQgZGF0YSA9IEpTT04ucGFyc2UoaHRtbCkuZGF0YS5hbGJ1bS5kb2NzOwogICAgICAgIGRhdGEuZm9yRWFjaChpdCA9PiB7CiAgICAgICAgICAgIGxldCBpZCA9ICdodHRwczovL21vYmlsZS54aW1hbGF5YS5jb20vbW9iaWxlL3YxL2FsYnVtL3RyYWNrL3RzLTE3MjA1ODkxMDU4MDc/YWxidW1JZD0nICsgaXQuYWxidW1JZCArICcmcGFnZUlkPTEmcGFnZVNpemU9MzAwMCZkZXZpY2U9YW5kcm9pZCZpc0FzYz10cnVlJzsKICAgICAgICAgICAgZC5wdXNoKHsKICAgICAgICAgICAgICAgIHVybDogaWQsCiAgICAgICAgICAgICAgICB0aXRsZTogaXQudGl0bGUsCiAgICAgICAgICAgICAgICBpbWc6IGl0LmNvdmVyUGF0aCwKICAgICAgICAgICAgfSkKICAgICAgICB9KTsKICAgICAgICBzZXRSZXN1bHQoZCk7CiAgICB9KSwKfQ==
|